package chat_server;

import java.util.ArrayList;
import java.util.Collection;

public class Distributor
{
    private Collection<Issuing> issuings = new ArrayList<Issuing>();

    public void addIssuing(Issuing issuing)
    {
	this.issuings.add(issuing);
    }

    public void distributeMessage(String message)
    {
	for (Issuing issuing : this.issuings)
	{
	    issuing.send(message);
	}
    }
}
